<?php

/**
 * Author: 周斌斌 <553193368@qq.com>
 * Date: 17/3/2 PM3:17
 * 摘要:
 */
namespace app\dv1\validate;

use think\Validate;

class LoginValidate extends Validate
{
    protected $rule = [
        ['username', ['regex' => '/^1[34578]{1}\d{9}$/', 'require'], ['手机号码格式错误', '请输入用户名']],
        ['password', ['require', 'length' => '6,20'], ['请输入密码', '密码长度在6位到20位之间']]
    ];
}